package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.GelikgMapper;
import com.information.manage.MaintenanceRecord.pojo.Gelikg;
import com.information.manage.MaintenanceRecord.service.GelikgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GelikgServiceImpl implements GelikgService {
    @Autowired
    private GelikgMapper gelikgMapper;

    @Override
    public List<Gelikg> selectAll() {
        return gelikgMapper.selectAll();
    }

    @Override
    public void addMaintGelikg(Gelikg gelikg) {
        gelikgMapper.insert(gelikg);
    }

    @Override
    public void updateMaintGelikg(Gelikg gelikg) {
        gelikgMapper.update(gelikg);
    }

    @Override
    public void deleteMaintGelikg(Integer kgid) {
        gelikgMapper.delete(kgid);
    }

    @Override
    public void logicDeleteMaintGelikg(Integer kgid) {
        gelikgMapper.logicDelete(kgid);
    }
}